home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / xcb-20.zip / XCB.AD < prev    next >
Text File  |  1992-11-11  |  2KB  |  55 lines

  1.  
  2. ! Xcb application defaults resource file.
  3. ! ======================================================================
  4.  
  5. ! The xcb widget hierarchy consists of a number of custom buffer
  6. ! widgets contained within a single Athena form widget.
  7. ! The widget names and classes are as follows:
  8. !
  9. ! buffer widgets    name = "buffer<NN>"    class = "Buffer"
  10. ! form widget       name = "container"     class = "Form"
  11. !
  12. ! Buffer widgets are numbered from 0... onwards, and are named accordingly.
  13. ! As well as the standard core resources, each buffer widget supports
  14. ! resources for "foreground" and "font".
  15.  
  16. ! Application wide resources are as follows:
  17. !
  18. ! "bufferCount" (default value 8)
  19. !    This is the number of buffer widgets to create.
  20. !    Any number of widgets (greater than zero) can be created.
  21. !
  22. ! "layout" (default value "h")
  23. !    Only the first character of the resource value is significant.
  24. !    This is the geometry arrangement to apply in the form widget.
  25. !    The layout can be "h" (horizontal), "v" (vertical), or some
  26. !    other value to disable the geometry code and allow you to build
  27. !    your own custom layout scheme.  An example is provided below.
  28. !    Refer to the "Athena Widget Set" manual for further details.
  29.  
  30. Xcb.bufferCount:        8
  31. Xcb.layout:            horizontal
  32. Xcb*font:            fixed
  33. Xcb*borderWidth:        1
  34. Xcb*container.defaultDistance:    0
  35. Xcb*Buffer.width:        60
  36. Xcb*Buffer.height:        60
  37.  
  38. ! Below is an example of a layout scheme which arranges
  39. ! 10 cut buffer widgets in two rows of 5 windows.
  40. !
  41. !Xcb.bufferCount:        10
  42. !Xcb.layout:            custom
  43. !Xcb*buffer1.fromHoriz:        buffer0
  44. !Xcb*buffer2.fromHoriz:        buffer1
  45. !Xcb*buffer3.fromHoriz:        buffer2
  46. !Xcb*buffer4.fromVert:        buffer0
  47. !Xcb*buffer5.fromHoriz:        buffer4
  48. !Xcb*buffer5.fromVert:        buffer1
  49. !Xcb*buffer6.fromHoriz:        buffer5
  50. !Xcb*buffer6.fromVert:        buffer2
  51. !Xcb*buffer7.fromHoriz:        buffer6
  52. !Xcb*buffer7.fromVert:        buffer3
  53. !Xcb*buffer8.fromHoriz:        buffer7
  54. !Xcb*buffer9.fromHoriz:        buffer8
  55.